package cn.wen233.iocdemo.domain.enums;

/**
 * 小灯状态
 *
 * @author wenei
 * @date 2021-06-22 9:39
 */
public enum LedState {
    ON(true, "o", "小灯打开"),

    OFF(false, "f", "小灯关闭");

    LedState(boolean state, String command, String message) {
        this.state = state;
        this.command = command;
        this.message = message;
    }

    private boolean state;

    private String command;

    private String message;

    public boolean isState() {
        return state;
    }

    public String getCommand() {
        return command;
    }

    public String getMessage() {
        return message;
    }
}
